<?php
/* @var $this QshiftController */
/* @var $model Qshift */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>
<table>

	<tr>
		<td >
			Name:			
		</td>
		<td > 
		<?php echo $form->textField($model,'name',array('size'=>35,'maxlength'=>45)); ?>
		</td>
	</tr>
	
	

	<tr>
		<td >
			Description:			
		</td>
		<td > 
		<?php echo $form->textField($model,'description',array('size'=>35,'maxlength'=>100)); ?>
		</td>
	</tr>
	

	<tr>
		<td >
			Start Time:			
		</td>
		<td > 
			<?php $this->widget( 'ext.EJuiTimePicker.EJuiTimePicker', array(
			  'model' => $model, 
			  'attribute' => 'start_time',
			  'options' => array(
					'timeOnly' => true,
					'stepMinute' => '15',
			  ),
			  
			  'htmlOptions'=>array(
					'size'=>'5',
			  ),
			  
			)); ?>			
		</td>
	</tr>

	<tr>
		<td >
			End Time:			
		</td>
		<td > 
			<?php $this->widget( 'ext.EJuiTimePicker.EJuiTimePicker', array(
			  'model' => $model, 
			  'attribute' => 'end_time',
			  'options' => array(
					'timeOnly' => true,
					'stepMinute' => '15',
			  ),
			  
			  'htmlOptions'=>array(
					'size'=>'5',
			  ),
			  
			)); ?>
		</td>
	</tr>

	<tr>
		<td >
			Enabled:			
		</td>
		<td > 
			<?php echo $form->dropDownList($model, 'enabled',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>'','class'=>'dropbinary'));?>													
		</td>
	</tr>

	<tr>
		<td >
			Availability:			
		</td>
		<td > 
			<?php echo $form->dropDownList($model, 'availability',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>'','class'=>'dropbinary'));?>
		</td>
	</tr>

	<tr>
		<td >
			Swaps Allowed:			
		</td>
		<td > 
			<?php echo $form->dropDownList($model, 'swap_allowed',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>'','class'=>'dropbinary'));?>
		</td>
	</tr>

	<tr>
		<td >
			Team:			
		</td>
		<td > 
			<?php echo $form->dropDownList($model,'team_id',
										   CHtml::listData(Team::model()->findAll(),
														   'idteam', 
														   'short_name'),	
											array('empty'=>''));?>
		</td>
	</tr>
</table>

	<div class="buttons">
		<?php echo CHtml::submitButton('Search'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->